<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
    <title>我的课程</title>
    <!-- Reset CSS -->
    <link href="css/reset.css" th:href="@{css/reset.css}" rel="stylesheet" type="text/css">
    <!-- Bootstrap -->
    <link href="assets/bootstrap/css/bootstrap.min.css" th:href="@{assets/bootstrap/css/bootstrap.min.css}" rel="stylesheet" type="text/css">
    <!-- Font Awesome -->
    <link href="assets/font-awesome/css/font-awesome.min.css" th:href="@{assets/font-awesome/css/font-awesome.min.css}" rel="stylesheet" type="text/css">
    <!-- Iconmoon -->
    <link href="assets/iconmoon/css/iconmoon.css" th:href="@{assets/iconmoon/css/iconmoon.css}" rel="stylesheet" type="text/css">
    <!-- Lightbox CSS -->
    <link href="assets/lightbox/css/lightbox.css" th:href="@{assets/lightbox/css/lightbox.css}" rel="stylesheet" type="text/css">
    <!-- Owl Carousel -->
    <link href="assets/owl-carousel/css/owl.carousel.min.css" th:href="@{assets/owl-carousel/css/owl.carousel.min.css}" rel="stylesheet" type="text/css">
    <!-- Animate -->
    <link href="css/animate.css" th:href="@{css/animate.css}" rel="stylesheet" type="text/css">
    <!-- Aos -->
    <link href="assets/aos/aos.css" th:href="@{assets/aos/aos.css}" rel="stylesheet" type="text/css">
    <!-- Custom Style -->
    <link href="css/custom.css" th:href="@{css/custom.css}" rel="stylesheet" type="text/css">

    <link href="css/coach-courseManage.css" th:href="@{css/coach-courseManage.css}" rel="stylesheet" type="text/css" />
</head>
<body>

<header style="margin-top: -10px;">
    <!-- Start Header Sec -->
    <div class="container header-sec">
        <div class="row">
            <span class="col-xs-12 col-sm-3 logo"><a href="javascript:;"><img src="images/logo.png" class="main img-responsive" alt="Fitness Gym"><img src="images/logo-fix.png" class="fix img-responsive" alt="Fitness Gym"></a></span>
            <div class="col-xs-12 col-sm-9 header-right">
                <!-- Start Navigation -->
                <nav class="navbar navbar-expand-md navbar-dark navbar-custom">
                    <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbarNavDropdown">
                        <ul class="navbar-nav">
                            <li class="nav-item active" id="oneLi">
                                <a class="nav-link" href="javascript:myselfChoose(1);">我的课程</a>
                            </li>
                            <li class="nav-item "  id="twoLi">
                                <a class="nav-link" href="javascript:myselfChoose(2);">发布新课程</a>
                            </li>
                        </ul>
                    </div>
                </nav>
                <!-- End Navigation -->
            </div>
        </div>
    </div>
    <!-- End Header Sec -->
</header>
<!-- End Header -->

<!-- Start Finess Sec -->
<div class="finess-outer"  >
    <div class="container"  >
        <p>&nbsp;</p>
        <!--<h3>今年夏天进行的健身课 <br/>立即 付款<br/> 将得到 <span>25%</span> 的折扣</h3>-->
    </div>
</div>
<!-- End Finess sec -->

<!-- Start Feature Classes -->
<div class="feature-outer classes-page">
    <div class="container" id="oneContainer">
        <div class="feature-list">
            <div class="row" id="myCourseDiv">

            </div>
        </div>
    </div> <!--OneContainer -->
    <div class="container" id="twoContainer">
        <div class="row">
            <div class="col-sm-4">
                <img id="pic" src="images/feature-thumb1.png" style="width: 360px;height: 246px;">
                <input id="upload" name="file" accept="images/*" type="file" style="display: none"/>
                <input type="hidden" id="fileName" value="feature-thumb1.png" />
                <p style="font-size: 18px;">点击图片更改当前图片<Strong style="color: green;">(确认之后图片无法修改)</Strong>,若取消当前上传请点击
                    <em onclick="stopUpload()" style="color: red;">取消</em></p>
            </div>
            <div class="col-sm-7" id="addRow">
                <div class="input-group">
                    <span class="input-group-addon" >课程名称</span>
                    <input type="text" class="form-control" id="addcourseName" placeholder="请填写" >
                </div>
                <div class="input-group">
                    <span class="input-group-addon">教师名称</span>
                    <input type="text" class="form-control" id="addcourseTeacher" placeholder="请填写"  th:value="${session.nowUser.coach.cname}"  readonly="readonly">
                </div>
                <div class="input-group">
                    <span class="input-group-addon">课程类型</span>
                    <select type="text" class="form-control" id="addcourseMold" >
                        <option>公共课</option>
                        <option>增肌课</option>
                        <option>减脂课</option>
                        <option>康复课</option>
                        <option>特色课</option>
                    </select>
                </div>
                <div class="input-group">
                    <span class="input-group-addon" >时间</span>
                    <select type="text" class="form-control" id="addcourseWeek">
                        <option value="1">周一</option>
                        <option value="2">周二</option>
                        <option value="3">周三</option>
                        <option value="4">周四</option>
                        <option value="5">周五</option>
                        <option value="6">周六</option>
                        <option value="7">周日</option>
                        <option value="8">每周任意</option>
                    </select>
                    <select type="text" class="form-control" id="addcourseSchooltime">
                        <option value="当天任意">当天任意</option>
                        <option value="08:00">08:00</option>
                        <option value="08:30">08:30</option>
                        <option value="09:00">09:00</option>
                        <option value="09:30">09:30</option>
                        <option value="10:00">10:00</option>
                        <option value="10:30">10:30</option>
                        <option value="11:00">11:00</option>
                        <option value="11:30">11:30</option>
                        <option value="13:00">13:00</option>
                        <option value="13:30">13:30</option>
                        <option value="14:00">14:00</option>
                        <option value="14:30">14:30</option>
                        <option value="15:00">15:00</option>
                        <option value="15:30">15:30</option>
                        <option value="16:00">16:00</option>
                        <option value="16:30">16:30</option>
                        <option value="17:00">17:00</option>
                        <option value="17:30">17:30</option>
                        <option value="18:00">18:00</option>
                        <option value="18:30">18:30</option>
                        <option value="19:00">19:00</option>
                        <option value="19:30">19:30</option>
                        <option value="20:00">20:00</option>
                        <option value="20:30">20:30</option>
                    </select>
                </div>
                <div class="input-group">
                    <span class="input-group-addon" >课程类型</span>
                    <select type="text" class="form-control" id="addcourseVenue" >
                        <option value="无氧区">无氧区</option>
                        <option value="瑜伽房">瑜伽房</option>
                        <option value="操课房">操课房</option>
                        <option value="武术房">武术房</option>
                        <option value="有氧区">有氧区</option>
                        <option value="单车房">单车房</option>
                        <option value="私教区">私教区</option>
                    </select>
                </div>
                <div class="input-group">
                    <span class="input-group-addon" >课程价格</span>
                    <input type="text" class="form-control" id="addcoursePrice" placeholder="请填写数字" style="">
                </div>

            </div>

            <div class="col-sm-1">
                <button type="button" class="btn"  id="addCourse">添加</button>
            </div>
        </div>
    </div><!--twoContainer-->
</div> <!-- End Feature sec -->

<!-- Modal 用于获取资料并显示-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" style="z-index: 99999;">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">课程当前信息</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row" >
                        <div class="col-sm-6">
                            <input hidden="hidden" id="courseId" />
                            <img src="" id="courseSample" />
                            <button id="deleteThisCourse" class="btn" style="margin-top: 20px">删除此课程</button>
                        </div>
                        <div class="col-sm-6" id="updateRow">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">课程名称</span>
                                <input type="text" class="form-control" id="courseName" placeholder="课程名称" style="" aria-describedby="basic-addon1">
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon2">教师名称</span>
                                <input type="text" class="form-control" id="courseTeacher" placeholder="教师名称" style="" aria-describedby="basic-addon2" readonly="readonly">
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon3">课程类型</span>
                                <select type="text" class="form-control" id="courseMold" aria-describedby="basic-addon3">
                                    <option>公共课</option>
                                    <option>增肌课</option>
                                    <option>减脂课</option>
                                    <option>康复课</option>
                                    <option>特色课</option>
                                </select>
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon4">时间</span>
                                <select type="text" class="form-control" id="courseWeek" aria-describedby="basic-addon4">
                                    <option value="1">周一</option>
                                    <option value="2">周二</option>
                                    <option value="3">周三</option>
                                    <option value="4">周四</option>
                                    <option value="5">周五</option>
                                    <option value="6">周六</option>
                                    <option value="7">周日</option>
                                    <option value="8">每周任意</option>
                                </select>
                                <select type="text" class="form-control" id="courseSchooltime" aria-describedby="basic-addon4">
                                    <option value="当天任意">任意</option>
                                    <option value="08:00">08:00</option>
                                    <option value="08:30">08:30</option>
                                    <option value="09:00">09:00</option>
                                    <option value="09:30">09:30</option>
                                    <option value="10:00">10:00</option>
                                    <option value="10:30">10:30</option>
                                    <option value="11:00">11:00</option>
                                    <option value="11:30">11:30</option>
                                    <option value="13:00">13:00</option>
                                    <option value="13:30">13:30</option>
                                    <option value="14:00">14:00</option>
                                    <option value="14:30">14:30</option>
                                    <option value="15:00">15:00</option>
                                    <option value="15:30">15:30</option>
                                    <option value="16:00">16:00</option>
                                    <option value="16:30">16:30</option>
                                    <option value="17:00">17:00</option>
                                    <option value="17:30">17:30</option>
                                    <option value="18:00">18:00</option>
                                    <option value="18:30">18:30</option>
                                    <option value="19:00">19:00</option>
                                    <option value="19:30">19:30</option>
                                    <option value="20:00">20:00</option>
                                    <option value="20:30">20:30</option>
                                </select>
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon5">课程类型</span>
                                <select type="text" class="form-control" id="courseVenue" aria-describedby="basic-addon5">
                                    <option value="无氧区">无氧区</option>
                                    <option value="瑜伽房">瑜伽房</option>
                                    <option value="操课房">操课房</option>
                                    <option value="武术房">武术房</option>
                                    <option value="有氧区">有氧区</option>
                                    <option value="单车房">单车房</option>
                                    <option value="私教区">私教区</option>
                                </select>
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon6">课程价格</span>
                                <input type="text" class="form-control" id="coursePrice" placeholder="课程价格" style="" aria-describedby="basic-addon6">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-default" id="updateCourse">更新课程信息</button>
            </div>
        </div>
    </div>
</div>
<!--提示框 -->
<div id="info">
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <span id="msg"></span>
</div>

<input th:value="${session.nowUser.coach.cname}" hidden="hidden" id="nowCName">
</body>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js" th:src="@{js/jquery.min.js}"></script>
<!-- Bootstrap JS -->
<script src="assets/bootstrap/js/bootstrap.min.js" th:src="@{assets/bootstrap/js/bootstrap.min.js}"></script>
<!-- Lightbox JS -->
<script src="assets/lightbox/js/lightbox.js" th:src="@{assets/lightbox/js/lightbox.js}"></script>
<!-- Owl Carousal JS -->
<script src="assets/isotope/js/isotope.min.js" th:src="@{assets/isotope/js/isotope.min.js}"></script>
<!-- Owl Carousal JS -->
<script src="assets/owl-carousel/js/owl.carousel.min.js" th:src="@{assets/owl-carousel/js/owl.carousel.min.js}"></script>
<!-- Aos JS -->
<script src="assets/aos/aos.js" th:src="@{assets/aos/aos.js}"></script>
<!-- CounterUp JS -->
<script src="assets/counterup/counterup.min.js" th:src="@{assets/counterup/counterup.min.js}"></script>
<script src="assets/counterup/waypoints.min.js" th:src="@{assets/counterup/waypoints.min.js}"></script>
<!-- Custom JS -->
<script src="js/custom.js" th:src="@{js/custom.js}"></script>
<script src="js/coach-courseManage.js" th:src="@{js/coach-courseManage.js}"></script>
</html>
